package cn.itcast.scala.course07

/**
  * String 插值与多行字符串
  * create by zhangtian on 2019/1/8
  */
object StringApp extends App {

  println("************* String 插值 **************")
  val name = "PK"
  val team = "AC Milan"

  println(s"Hello $name, welcome to $team")

  println("************* String 多行字符串 **************")
  val lineStr =
    s"""
      | 这是一个多行字符串
      | Hello,$name, Welcome to $team
      | ......
    """.stripMargin

  println(lineStr)
}
